package com.buka.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.api.R;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.buka.entity.CouponTask;
import com.buka.request.LockCouponRequest;
import com.buka.service.CouponTaskService;
import com.buka.util.JsonData;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

/**
 * (CouponTask)表控制层
 *
 * @author makejava
 * @since 2025-08-18 14:17:23
 */
@RestController
@RequestMapping("/api/couponTask/v1")
public class CouponTaskController extends ApiController {
    /**
     * 服务对象
     */
    @Resource
    private CouponTaskService couponTaskService;


    @PostMapping("lockCoupon")
    public JsonData  lockCoupon(@RequestBody LockCouponRequest lockCouponRequest){
        return couponTaskService.lockCoupon(lockCouponRequest);
    }



}

